package main

import (
	"fmt"
	"gopkg.in/ini.v1"
	"os"
)

func main() {
	dir, err2 := os.Getwd()
	if err2 != nil {
		panic("the work dir is error")
	}
	fmt.Println("Current work dir is :" + dir)
	mysqlHost := os.Getenv("MYSQL_HOST")
	mysqlPort := os.Getenv("MYSQL_PORT")
	fmt.Println("MYSQL_HOST: ", mysqlHost)
	fmt.Println("MYSQL_PORT: ", mysqlPort)
	println("hello world")
	load, err := ini.Load("./test.txt")
	if err != nil {
		panic("Failed to read gpt config file: " + err.Error())
	}
	println(load.Section("").Key("gpt_api_key").String())
}
